﻿using System;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;

namespace Hxsoft.AppV1
{
	/// <summary>
	/// 应用程序配置类。
	/// </summary>
	public class ApplicationConfiguration
	{
		/// <summary>
		/// 应用程序配置实例。
		/// </summary>
		private static readonly ApplicationConfigurationSection applicationConfiguration = ApplicationConfigurationSection.Instance;

		/// <summary>
		/// 应用程序配置类。
		/// </summary>
		public static ApplicationConfigurationSection Configuration
		{
			get
			{
				return applicationConfiguration;
			}
		}




		/// <summary>
		/// 取得用户整合子系统配置元素集合。
		/// </summary>
		/// <returns></returns>
		public static UserIntegrationSubsystemElementCollection GetUserIntegrationSubsystems()
		{
			if (Configuration!= null &&
				Configuration.SystemIntegration != null &&
				Configuration.SystemIntegration.UserIntegration != null)
				return Configuration.SystemIntegration.UserIntegration.UserIntegrationSubsystems;
			return null;
		}

		/// <summary>
		/// 取得专题模块配置元素集合。
		/// </summary>
		/// <returns></returns>
		public static SpecialModuleElementCollection GetSpecialModules()
		{
			if (Configuration != null &&
				Configuration.Special != null)
				return Configuration.Special.Modules;
			return null;
		}

		public static int? GetCurrentSiteId()
		{
			if (Configuration != null)
				return Configuration.CurrentSiteId;
			return null;
		}

		public static ResourceThumbnailCopyElement GetResourceThumbnailCopy(string name)
		{
			return Configuration.InfoResourceThumbnail.ResourceThumbnails.GetItem(name);
		}

		public static string GetThumbnailTypeUrl(string typeName, string copyName)
		{
			ResourceTypeThumbnailElement resourceType = Configuration.InfoResourceThumbnail.ResourceTypeThumbnails.GetItem(typeName);
			return resourceType.ThumbnailTypes.GetItem(copyName).Url;
		}

		public static string GetMiniType(string fileType)
		{
			if (string.IsNullOrEmpty(fileType))
				return null;
			switch (fileType.ToLower())
			{
				case "bmp":
					return "image/bmp";
				case "gif":
					return "image/gif";
				case "jpe":
				case "jpg":
				case "jpeg":
					return "image/jpeg";
				case "png":
					return "image/png";
				case "swf":
					return "application/x-shockwave-flash";
			}
			return "application/octet-stream";
		}

		public static string GetContentUrl(int siteId, string moduleName)
		{
			string contentUrl = null;

			if (Configuration != null && Configuration.ContentUrl != null && Configuration.ContentUrl.Article != null)
			{
				ArticleContentUrlElement article = Configuration.ContentUrl.Article;

				contentUrl = article.CustomContentUrl;

				SiteArticleContentUrlElement site = article.Sites.GetItem(siteId.ToString());
				if (site == null) return contentUrl;
				if (site.CustomContentUrl != null) contentUrl = site.CustomContentUrl;

				ModuleArticleContentUrlElement module = site.Modules.GetItem(moduleName);
				if (module == null) return contentUrl;
				if (module.ContentUrl != null) contentUrl = module.ContentUrl;
			}

			return contentUrl;
		}



		#region Url
		private static string _gApiKey = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["GApiKey"], "ABQIAAAAJQQwtWqFqRiCIfOrQU3KWRSfyvONjfZ1FzjXDHxg5g4dbcqMqxQn88NT1ntQCHUZWVvq5Aa3bYaS4Q");
		public static string GApiUrl
		{
			get
			{
				return "http://www.google.com/jsapi?key=" + _gApiKey;
			}
		}
		
		public static string GMapUrl
		{
			get
			{
				return "http://ditu.google.com/maps?file=api&amp;v=2&amp;key=" + _gApiKey;
			}
		}

		private static string _hostGApiKey = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["HostGApiKey"], "ABQIAAAAJQQwtWqFqRiCIfOrQU3KWRStMyA0f3BNyJgeUhI5YV9r4sLtzBSExCI-tcRePaBLrkdWYQ7ckRcWiA");
		public static string HostGApiUrl
		{
			get
			{
				return "http://www.google.com/jsapi?key=" + _hostGApiKey;
			}
		}

		public static string HostGMapUrl
		{
			get
			{
				return "http://ditu.google.com/maps?file=api&amp;v=2&amp;key=" + _hostGApiKey;
			}
		}

		private static string _jQueryUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryUrl"], "/_Client/JQuery/jquery.js");
		public static string JQueryUrl
		{
			get
			{
				return _jQueryUrl;
			}
		}

		private static string _jQueryBgiframeUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryBgiframeUrl"], "/_Client/JQuery/bgiframe/jquery.bgiframe.min.js");
		public static string JQueryBgiframeUrl
		{
			get
			{
				return _jQueryBgiframeUrl;
			}
		}

		private static string _jQueryLazyloadUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryLazyloadUrl"], "/_Client/JQuery/LazyLoad/jquery.lazyload.pack.js");
		public static string JQueryLazyloadUrl
		{
			get
			{
				return _jQueryLazyloadUrl;
			}
		}

		#region JQueryUI
		private static string _jQueryUiFolderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryUiFolderUrl"], "/_Client/JQuery/JQueryUI/");
		public static string JQueryUiFolderUrl
		{
			get
			{
				return _jQueryUiFolderUrl;
			}
		}

		public static string JQueryUiUrl
		{
			get
			{
				return JQueryUiFolderUrl + "js/jquery-ui.js";
			}
		}

		public static string JQueryUiCssUrl
		{
			get
			{
				return JQueryUiFolderUrl + "css/default/jquery-ui.css";
			}
		}
		#endregion

		#region JQueryCycle
		private static string _jQueryCycleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryCycleUrl"], "/_Client/JQuery/Cycle/jquery.cycle.all.pack.js");
		public static string JQueryCycleUrl
		{
			get
			{
				return _jQueryCycleUrl;
			}
		}

		private static string _jQueryCycleStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryCycleStyleUrl"], "/_Client/JQuery/Cycle/cycle.css");
		public static string JQueryCycleStyleUrl
		{
			get
			{
				return _jQueryCycleStyleUrl;
			}
		}
		#endregion

		#region JSCalendar
		private static string _jsCalendarFolderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JSCalendarFolderUrl"], "/_Client/Controls/JSCalendar/");
		public static string JSCalendarFolderUrl
		{
			get
			{
				return _jsCalendarFolderUrl;
			}
		}

		public static string JSCalendarCssUrl
		{
			get
			{
				return JSCalendarFolderUrl + "calendar-Blue.css";
			}
		}

		public static string JSCalendarUrl
		{
			get
			{
				return JSCalendarFolderUrl + "calendar.js";
			}
		}

		public static string JSCalendarLanguageUrl
		{
			get
			{
				return JSCalendarFolderUrl + "lang/calendar-zh.js";
			}
		}

		public static string JSCalendarSetupUrl
		{
			get
			{
				return JSCalendarFolderUrl + "calendar-setup.js";
			}
		}
		#endregion

		private static string _jQueryEasingUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryEasingUrl"], "/_Client/JQuery/Easing/jquery.easing.1.3.js");
		public static string JQueryEasingUrl
		{
			get
			{
				return _jQueryEasingUrl;
			}
		}

		#region JQueryFormValidator
		private static string _jQueryFormValidatorUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryFormValidatorUrl"], "/_Client/JQuery/formValidator/formValidator_min.js");
		public static string JQueryFormValidatorUrl
		{
			get
			{
				return _jQueryFormValidatorUrl;
			}
		}

		private static string _jQueryFormValidatorRegexUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryFormValidatorRegexUrl"], "/_Client/JQuery/formValidator/formValidatorRegex.js");
		public static string JQueryFormValidatorRegexUrl
		{
			get
			{
				return _jQueryFormValidatorRegexUrl;
			}
		}

		private static string _jQueryFormValidatorStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryFormValidatorStyleUrl"], "/_Client/JQuery/formValidator/formValidatorRegex.js");
		public static string JQueryFormValidatorStyleUrl
		{
			get
			{
				return _jQueryFormValidatorStyleUrl;
			}
		}
		#endregion

		#region FusionCharts
		private static string _fusionChartsFolderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["FusionChartsFolderUrl"], "/_Client/Controls/FusionCharts/");
		public static string FusionChartsFolderUrl
		{
			get
			{
				return _fusionChartsFolderUrl;
			}
		}

		private static string _fusionChartsUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["FusionChartsUrl"], "/_Client/Controls/FusionCharts/JSClass/FusionCharts.js");
		public static string FusionChartsUrl
		{
			get
			{
				return _fusionChartsUrl;
			}
		}
		#endregion

		#region SwfCharts
		private static string _swfChartsFolderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SwfChartsFolderUrl"], "/_Client/Controls/SwfCharts/");
		public static string SwfChartsFolderUrl
		{
			get
			{
				return _swfChartsFolderUrl;
			}
		}

		private static string _swfChartsUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SwfChartsUrl"], "/_Client/Controls/SwfCharts/AC_RunActiveContent.js");
		public static string SwfChartsUrl
		{
			get
			{
				return _swfChartsUrl;
			}
		}
		#endregion

		#region JQueryThickBox
		private static string _jQueryThickBoxUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryThickBoxUrl"], "/_Client/JQuery/ThickBox/thickbox-compressed.js");
		public static string JQueryThickBoxUrl
		{
			get
			{
				return _jQueryThickBoxUrl;
			}
		}

		private static string _jQueryThickBoxStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryThickBoxStyleUrl"], "/_Client/JQuery/ThickBox/thickbox.css");
		public static string JQueryThickBoxStyleUrl
		{
			get
			{
				return _jQueryThickBoxStyleUrl;
			}
		}
		#endregion

		#region JQueryTooltip
		private static string _jQueryTooltipUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryTooltipUrl"], "/_Client/JQuery/tooltip/jquery.tooltip.js");
		public static string JQueryTooltipUrl
		{
			get
			{
				return _jQueryTooltipUrl;
			}
		}

		private static string _jQueryTooltipStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryTooltipStyleUrl"], "/_Client/JQuery/tooltip/jquery.tooltip.css");
		public static string JQueryTooltipStyleUrl
		{
			get
			{
				return _jQueryTooltipStyleUrl;
			}
		}
		#endregion

		#region JQueryCluetip
		private static string _jQueryCluetipUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryCluetipUrl"], "/_Client/JQuery/cluetip/jquery.cluetip.min.js");
		public static string JQueryCluetipUrl
		{
			get
			{
				return _jQueryCluetipUrl;
			}
		}

		private static string _jQueryCluetipStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryCluetipStyleUrl"], "/_Client/JQuery/cluetip/jquery.cluetip.css");
		public static string JQueryCluetipStyleUrl
		{
			get
			{
				return _jQueryCluetipStyleUrl;
			}
		}
		#endregion

		#region JQueryHoverIntent
		private static string _jQueryHoverIntentUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryHoverIntentUrl"], "/_Client/JQuery/hoverIntent/jquery.hoverIntent.minified.js");
		public static string JQueryHoverIntentUrl
		{
			get
			{
				return _jQueryHoverIntentUrl;
			}
		}
		#endregion

		#region JQueryAutocomplete
		private static string _jQueryAutocompleteUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryAutocompleteUrl"], "/_Client/JQuery/jquery-autocomplete/jquery.autocomplete.pack.js");
		public static string JQueryAutocompleteUrl
		{
			get
			{
				return _jQueryAutocompleteUrl;
			}
		}

		private static string _jQueryAutocompleteStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryAutocompleteStyleUrl"], "/_Client/JQuery/jquery-autocomplete/jquery.autocomplete.css");
		public static string JQueryAutocompleteStyleUrl
		{
			get
			{
				return _jQueryAutocompleteStyleUrl;
			}
		}
		#endregion

		#region JQueryJcarousel
		private static string _jQueryJcarouselSkinFolderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryJcarouselSkinFolderUrl"], "/_Client/JQuery/Jcarousel/skins/");
		public static string JQueryJcarouselSkinFolderUrl
		{
			get
			{
				return _jQueryJcarouselSkinFolderUrl;
			}
		}

		private static string _jQueryJcarouselUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryJcarouselUrl"], "/_Client/JQuery/Jcarousel/lib/jquery.jcarousel.pack.js");
		public static string JQueryJcarouselUrl
		{
			get
			{
				return _jQueryJcarouselUrl;
			}
		}

		private static string _jQueryJcarouselStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryJcarouselStyleUrl"], "/_Client/JQuery/Jcarousel/lib/jquery.jcarousel.css");
		public static string JQueryJcarouselStyleUrl
		{
			get
			{
				return _jQueryJcarouselStyleUrl;
			}
		}
		#endregion

		#region JQueryJqModal
		private static string _jQueryJqModalUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryJqModalUrl"], "/_Client/JQuery/JqModal/jqModal.js");
		public static string JQueryJqModalUrl
		{
			get
			{
				return _jQueryJqModalUrl;
			}
		}

		private static string _jQueryJqModalStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryJqModalStyleUrl"], "/_Client/JQuery/JqModal/jqModal.css");
		public static string JQueryJqModalStyleUrl
		{
			get
			{
				return _jQueryJqModalStyleUrl;
			}
		}
		#endregion

		private static string _jQueryBlockUIUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JQueryBlockUIUrl"], "/_Client/JQuery/BlockUI/jquery.blockUI.js");
		public static string JQueryBlockUIUrl
		{
			get
			{
				return _jQueryBlockUIUrl;
			}
		}

		#region MessageBox
		private static string _messageBoxScriptUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["MessageBoxScriptUrl"], "/_Client/Controls/MessageBox/j.js");
		public static string MessageBoxScriptUrl
		{
			get
			{
				return _messageBoxScriptUrl;
			}
		}

		private static string _messageBoxStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["MessageBoxStyleUrl"], "/_Client/Controls/MessageBox/c.css");
		public static string MessageBoxStyleUrl
		{
			get
			{
				return _messageBoxStyleUrl;
			}
		}
		#endregion


		#region UpdateProgress
		private static string _updateProgressScriptUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["UpdateProgressScriptUrl"], "/_Client/Controls/UpdateProgress/j.js");
		public static string UpdateProgressScriptUrl
		{
			get
			{
				return _updateProgressScriptUrl;
			}
		}

		private static string _updateProgressStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["UpdateProgressStyleUrl"], "/_Client/Controls/UpdateProgress/c.css");
		public static string UpdateProgressStyleUrl
		{
			get
			{
				return _updateProgressStyleUrl;
			}
		}
		#endregion

		private static string _commonScriptUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["CommonScriptUrl"], "/_Client/Common/j.js");
		public static string CommonScriptUrl
		{
			get
			{
				return _commonScriptUrl;
			}
		}

		private static string _dicTextBoxSelectorStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["DicTextBoxSelectorStyleUrl"], "/_Client/Controls/DicTextBoxSelector/c.css");
		public static string DicTextBoxSelectorStyleUrl
		{
			get
			{
				return _dicTextBoxSelectorStyleUrl;
			}
		}

		private static string _dicTreeSelectorStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["DicTreeSelectorStyleUrl"], "/_Client/Controls/DicTreeSelector/c.css");
		public static string DicTreeSelectorStyleUrl
		{
			get
			{
				return _dicTreeSelectorStyleUrl;
			}
		}

		private static string _checkCodeImageUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["CheckCodeImageUrl"], "/CheckCodeImage.aspx");
		public static string CheckCodeImageUrl
		{
			get
			{
				return _checkCodeImageUrl;
			}
		}

		private static string _resourceSelectorStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["ResourceSelectorStyleUrl"], "/_Client/Controls/ResourceSelector/c.css");
		public static string ResourceSelectorStyleUrl
		{
			get
			{
				return _resourceSelectorStyleUrl;
			}
		}

		#region ResourcePopupSelector
		private static string _resourcePopupSelectorFolderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["ResourcePopupSelectorFolderUrl"], "/_Client/Controls/ResourcePopupSelector/");
		public static string ResourcePopupSelectorFolderUrl
		{
			get
			{
				return _resourcePopupSelectorFolderUrl;
			}
		}

		public static string ResourcePopupSelectorStyleUrl
		{
			get
			{
				return ResourcePopupSelectorFolderUrl + "c.css";
			}
		}
		#endregion

		private static string _infoResourceUploaderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["InfoResourceUploaderUrl"], "/InfoResourceUploader.aspx");
		public static string InfoResourceUploaderUrl
		{
			get
			{
				return _infoResourceUploaderUrl;
			}
		}

		private static string _infoResourceThumbnailGeneratorUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["InfoResourceThumbnailGeneratorUrl"], "/InfoResourceThumbnailGenerator.aspx");
		public static string InfoResourceThumbnailGeneratorUrl
		{
			get
			{
				return _infoResourceThumbnailGeneratorUrl;
			}
		}

		private static string _cascadingDropDownListScriptUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["CascadingDropDownListScriptUrl"], "/_Client/Controls/CascadingDropDownList/j.js");
		public static string CascadingDropDownListScriptUrl
		{
			get
			{
				return _cascadingDropDownListScriptUrl;
			}
		}

		private static string _dicCascadingDropDownListDataGeneratorUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["DicCascadingDropDownListDataGeneratorUrl"], "/DicCascadingDropDownListDataGenerator.aspx");
		public static string DicCascadingDropDownListDataGeneratorUrl
		{
			get
			{
				return _dicCascadingDropDownListDataGeneratorUrl;
			}
		}

		private static string _voteFolderUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["VoteFolderUrl"], "/_Client/Controls/Vote");
		public static string VoteFolderUrl
		{
			get
			{
				return _voteFolderUrl;
			}
		}

		#region sexy-combo
		private static string _sexyComboUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SexyComboUrl"], "/_Client/JQuery/sexy-combo/jquery.sexy-combo.pack.js");
		public static string SexyComboUrl
		{
			get { return _sexyComboUrl; }
		}

		private static string _sexyComboStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SexyComboStyleUrl"], "/_Client/JQuery/sexy-combo/css/sexy-combo.css");
		public static string SexyComboStyleUrl
		{
			get { return _sexyComboStyleUrl; }
		}

		private static string _sexyComboStyle_DefaultUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SexyComboStyle_DefaultUrl"], "/_Client/JQuery/sexy-combo/css/sexy/sexy.css");
		public static string SexyComboStyle_DefaultUrl
		{
			get { return _sexyComboStyle_DefaultUrl; }
		}
		#endregion

		private static string _imageScrollerUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["ImageScrollerUrl"], "/_Client/JQuery/imageScroller/jquery.imageScroller.js");
		public static string ImageScrollerUrl
		{
			get { return _imageScrollerUrl; }
		}


		#region	superfish
		private static string _superfishHoverIntentUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["HoverIntentUrl"], "/_Client/JQuery/superfish/js/hoverIntent.js");
		public static string SuperfishHoverIntentUrl
		{
			get { return _superfishHoverIntentUrl; }
		}
		private static string _superfishUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SuperfishUrl"], "/_Client/JQuery/superfish/js/superfish.js");
		public static string SuperfishUrl
		{
			get { return _superfishUrl; }
		}

		private static string _superfishStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SuperfishStyleUrl"], "/_Client/JQuery/superfish/css/superfish.css");
		public static string SuperfishStyleUrl
		{
			get { return _superfishStyleUrl; }
		}

		#endregion

		#region jcarousellite

		private static string _jcarouselliteUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JcarouselliteUrl"], "/_Client/JQuery/jcarousellite/jcarousellite_1.0.1.js");
		public static string JcarouselliteUrl
		{
			get { return _jcarouselliteUrl; }
		}

		private static string _jcarouselliteMinUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JcarouselliteMinUrl"], "/_Client/JQuery/jcarousellite/jcarousellite_1.0.1.min.js");
		public static string JcarouselliteMinUrl
		{
			get { return _jcarouselliteMinUrl; }
		}

		private static string _easingUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["EasingUrl"], "/_Client/JQuery/jcarousellite/jquery.easing.1.1.js");
		public static string EasingUrl
		{
			get { return _easingUrl; }
		}


		#endregion

		#region jMyCarousel

		private static string _jMyCarouselUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JMyCarouselUrl"], "/_Client/JQuery/jMyCarousel/jMyCarousel.js");
		public static string JMyCarouselUrl
		{
			get { return _jMyCarouselUrl; }
		}

		private static string _jMyCarouselStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JMyCarouselStyleUrl"], "/_Client/JQuery/jMyCarousel/examples/carousel_css/example1.css");
		public static string JMyCarouselStyleUrl
		{
			get { return _jMyCarouselStyleUrl; }
		}

		#endregion


		#region jquery.galleryview

		private static string _jqueryGalleryviewJQueryMinUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JqueryGalleryviewJQueryMinUrl"], "/_Client/JQuery/jquery_google_img/js/jquery-1.4.min.js");
		public static string JqueryGalleryviewJQueryMinUrl
		{
			get { return _jqueryGalleryviewJQueryMinUrl; }
		}

		private static string _jqueryGalleryviewUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JqueryGalleryviewUrl"], "/_Client/JQuery/jquery_google_img/js/jquery.galleryview-1.1.js");
		public static string JqueryGalleryviewUrl
		{
			get { return _jqueryGalleryviewUrl; }
		}

		private static string _jqueryGalleryviewStyleUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JqueryGalleryviewStyleUrl"], "/_Client/JQuery/jquery_google_img/galleryview.css");
		public static string JqueryGalleryviewStyleUrl
		{
			get { return _jqueryGalleryviewStyleUrl; }
		}

		private static string _jqueryGalleryviewEasingUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JqueryGalleryviewEasingUrl"], "/_Client/JQuery/jquery_google_img/js/jquery.easing.1.3.js");
		public static string JqueryGalleryviewEasingUrl
		{
			get { return _jqueryGalleryviewEasingUrl; }
		}

		private static string _jqueryGalleryviewTimersUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["JqueryGalleryviewTimersUrl"], "/_Client/JQuery/jquery_google_img/js/jquery.timers-1.1.2.js");
		public static string JqueryGalleryviewTimersUrl
		{
			get { return _jqueryGalleryviewTimersUrl; }
		}

		#endregion

		#region galleriffic
		private static string _gallerifficHistoryUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["GallerifficHistoryUrl"], "/_Client/JQuery/galleriffic/js/jquery.history.js");
		public static string GallerifficHistoryUrl
		{
			get { return _gallerifficHistoryUrl; }
		}

		private static string _gallerifficUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["GallerifficUrl"], "/_Client/JQuery/galleriffic/js/jquery.galleriffic.js");
		public static string GallerifficUrl
		{
			get { return _gallerifficUrl; }
		}

		private static string _gallerifficOpacityrolloverUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["GallerifficOpacityrolloverUrl"], "/_Client/JQuery/galleriffic/js/jquery.opacityrollover.js");
		public static string GallerifficOpacityrolloverUrl
		{
			get { return _gallerifficOpacityrolloverUrl; }
		}
		#endregion


		private static string _formUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["FormUrl"], "/_Client/JQuery/jquery.form.js");
		public static string FormUrl
		{
			get { return _formUrl; }
		}

		private static string _highchartsUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["HighchartsUrl"], "/_Client/JQuery/Highcharts-2.1.6/js/highcharts.js");
		public static string HighchartsUrl
		{
			get { return _highchartsUrl; }
		}

		private static string _highchartsSrcUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["HighchartsSrcUrl"], "/_Client/JQuery/Highcharts-2.1.6/js/highcharts.src.js");
		public static string HighchartsSrcUrl
		{
			get { return _highchartsSrcUrl; }
		}


		private static string _highstockUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["Highstock"], "/_Client/JQuery/Highstock-1.0/js/highstock.js");
		public static string HighstockUrl
		{
			get { return _highstockUrl; }
		}

		private static string _highstockSrcUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["HighstockSrcUrl"], "/_Client/JQuery/Highstock-1.0/js/highstock.src.js");
		public static string HighstockSrcUrl
		{
			get { return _highstockSrcUrl; }
		}

		#endregion

		#region SydLoad
		private static string _sydLoopooSwfUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SydLoopooSwfUrl"], "/_Client/JQuery/SydLoad/loopoo.swf");
		public static string SydLoopooSwfUrl
		{
			get { return _sydLoopooSwfUrl; }
		}
		private static string _sydLoopooUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SydLoopooUrl"], "/_Client/JQuery/SydLoad/syd.js");
		public static string SydLoopooUrl
		{
			get { return _sydLoopooUrl; }
		}
		#endregion


		#region SmoothDivScroll
		private static string _smoothDivScrollUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SmoothDivScrollUrl"], "/_Client/JQuery/SmoothDivScroll-1.1/js/jquery.smoothDivScroll-1.1.js");
		private static string _smoothDivScrollMinUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SmoothDivScrollMinUrl"], "/_Client/JQuery/SmoothDivScroll-1.1/js/jquery.smoothDivScroll-1.1-min.js");
		private static string _uiWidgetUrl = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["UiWidgetUrl"], "/_Client/JQuery/SmoothDivScroll-1.1/js/jquery.ui.widget.js");
		private static string _smoothDivScrollCss = StringExtensions.GetEffectiveValueOrDefault(ConfigurationManager.AppSettings["SmoothDivScrollCss"], "/_Client/JQuery/SmoothDivScroll-1.1/css/smoothDivScroll.css");

		public static string SmoothDivScrollUrl
		{
			get { return _smoothDivScrollUrl; }
		}
		public static string SmoothDivScrollMinUrl
		{
			get { return _smoothDivScrollMinUrl; }
		}
		public static string UiWidgetUrl
		{
			get { return _uiWidgetUrl; }
		}
		public static string SmoothDivScrollCss
		{
			get { return _smoothDivScrollCss; }
		}
		#endregion
	}
}